Inter-Hierarchy Comparison in HCLP
نویسنده
چکیده
Constraint hierarchies have been proposed to describe over-constrained systems of constraints by specifying constraints with hierarchical preferences, i.e., hard and soft constraints. While the hard (required) constraints must hold, the soft (preferential) constraints should be satisfied as much as possible depending on the criterion used. Currently, constraint hierarchies are mostly applied to the areas of graphical user interfaces and geometric layout, but the area of usage is much more wider. The integration of constraint hierarchies with Constraint Logic Programming (CLP) is called Hierarchical Constraint Logic Programming (HCLP). In the original definition of HCLP, only alternate solutions to one constraint hierarchy are compared and the best solutions are returned. The later extension of HCLP also supports comparison of solutions to more constraint hierarchies arising from different choices of rules in HCLP program. This extension, called inter-hierarchy comparison, extends usefulness of HCLP programs by eliminating non-intuitive solutions. However, at the same time, it introduces nonmonotonic behaviour in HCLP programs which creates novel implementation problems. In this paper we present an algorithm for efficient solving of constraint hierarchies using inter-hierarchy comparison within HCLP. The efficiency of the proposed algorithm is based on tight integration with the HCLP interpreter and on elimination of useless branches of computation. As the algorithm makes an extension of hierarchical constraint solvers which support global comparators, its efficiency can be further improved by harmonizing with underlying hierarchical constraint solver. We present such an extension that uses properties of our generalized approach to solving constraint hierarchies.
منابع مشابه
Inter-Hierarchy Comparison in HCLP1
Constraint hierarchies have been proposed to describe over-constraint systems of constraints by specifying constraints with hierarchical preferences, i.e., hard and soft constraints. While the hard (required) constraints must hold, the soft (preferential) constraints should be satisfied as much as possible depending on the criterion used. Currently, constraint hierarchies are mostly applied to ...
متن کاملExtending Hierarchical Constraint Logic Programming: Nonmonotonicity and Inter-Hierarchy Comparison
Hierarchical Constraint Logic Programming languages extend Constraint Logic Programming to include constraint hierarchies. These languages provide both required constraints and default constraints of various strengths. In the original de nition of HCLP, alternate solutions to a given constraint hierarchy were compared, and only the \best" solutions were returned. However, there was no attempt t...
متن کاملExtending HCLP with partially ordered hierarchies and composite constraints
Hierarchical Constraint Logic Programming (HCLP) extends the expressive power of Constraint Logic Programming (CLP) by allowing both required and non-required constraints, making the framework suitable for resolving and relaxing over-constrained problems. Each non-required constraint in HCLP is associated with a strength and constraint strengths are totally ordered. This arti cial restriction i...
متن کاملA Compositional Theory of Constraint
We propose a variant of the Hierarchical Constraint Logic Programming (HCLP) scheme of Borning, Wilson, and others. We consider compositionality and incre-mentality in Constraint Logic Programming, introduce HCLP, and present Wilson's proof 11] that it is non-compositional and non-monotonic. We deene a scheme for composing together solutions to individual hierarchies and show that hierarchy com...
متن کاملFair Hierarchical Constraint Logic Programming
We propose a variant of Hierarchical Constraint Logic Programming (HCLP) which is more general than standard CLP, but less general than the HCLP scheme of Borning, Wilson, and others. We conjecture that our variant, Fair HCLP, will have better semantics than HCLP, especially under hierarchy composition, and will be more amenable to incremental implementations. 1 Motivation The HCLP scheme of Bo...
متن کامل